package com.order.hit.crossover.platform.common.bean;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class Notice
{

    //  主键ID
    private Long noticeId;

    //  通知信息
    private String noticeInfo;

    //  通知的状态   0：未阅读   1：已读
    private int noticeState;

    //  通知的类型   0：门店系统通知  1：顾客系统通知
    private int noticeType;

    //  通知产生的时间
    private Date noticeTime;

    //  指向的门店ID/顾客ID
    private String storeId;

    public Notice()
    {
    }

    public Notice(String noticeInfo, int noticeState, int noticeType, String storeId)
    {
        this.noticeInfo = noticeInfo;
        this.noticeState = noticeState;
        this.noticeType = noticeType;
        this.storeId = storeId;
    }

    @Override
    public String toString()
    {
        return "Notice{" +
                "noticeId=" + noticeId +
                ", noticeInfo='" + noticeInfo + '\'' +
                ", noticeState=" + noticeState +
                ", noticeType=" + noticeType +
                ", noticeTime=" + noticeTime.toLocaleString() +
                ", storeId='" + storeId + '\'' +
                '}';
    }
}
